package com.zyb.warehouse.mapper;

import com.zyb.warehouse.entity.Unit;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * Description:单位表持久层接口
 */
@Mapper
public interface UnitMapper {

    /**
     * 查询所有单位
     *
     * @return
     */
    @Select("select * from unit")
    List<Unit> selectAllUnit();
}
